/**
 * User: alesj
 * Date: 2004.8.25
 * Time: 12:44:03
 */

package com.generalynx.common.web.tags;

import javax.servlet.jsp.JspException;


public class ObjectCollectionHandlerTag extends VoidCollectionHandlerTag {

    public int doStartTag() throws JspException {
        try {
            Object result = handleCollection();
            if (result != null) {
                pageContext.getOut().write(result.toString());
            } else {
                logger.warn("Returned null object!");
            }
            return EVAL_PAGE;
        } catch (Exception e) {
            throw new JspException(e);
        }
    }
}
